package com.lzh.edu.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "service-order")
public interface OrderClient {
    //查询订单是否支付
    @GetMapping("/order/isBuy")
    public boolean isBuyCourse(@RequestParam("userId") String userId, @RequestParam("courseId") String courseId);
}
